package Zuoye.zuoye4;

public class Test {
    public static void main(String[] args) {
        Tool tool = new Tool();
        double [] arr = {1.1, 2.2, 3.3, 4.4, 5.5, 6.6, 7.7, 8.8, 9.9, 10.10};
        int dichotomy = tool.dichotomy(arr, 6.7);
        System.out.println("位置索引"+dichotomy);

    }
}
